/**
 * 条目对象类型
 */
export interface entriesProps {
  id: string;
  name: string;
  amount: number | null;
  paid: boolean;
}

/**
 * 选项类型
 */

export interface entriesOptionsProps {
  sort: boolean;
}

/**
 * 更新条目名称或金额的类型
 */
export interface updateEntryNameProps {
  name: string;
}
export interface updateEntryAmountProps {
  amount: number | null;
}

export interface updateEntryPaidProps {
  paid: boolean;
}
export type updateEntryProps =
  | updateEntryNameProps
  | updateEntryAmountProps
  | updateEntryPaidProps;
